﻿namespace HutongGames.PlayMaker
{
    using System;
    using UnityEngine;

    [Serializable]
    public class FsmFloat : NamedVariable
    {
        [SerializeField]
        private float value;

        public FsmFloat()
        {
        }

        public FsmFloat(FsmFloat source) : base(source)
        {
            this.value = source.value;
        }

        public FsmFloat(string name) : base(name)
        {
        }

        public static implicit operator FsmFloat(float value)
        {
            FsmFloat num2 = new FsmFloat(string.Empty);
            num2.value = value;
            return num2;
        }

        public override string ToString()
        {
            return this.value.ToString();
        }

        public float Value
        {
            get
            {
                return this.value;
            }
            set
            {
                this.value = value;
            }
        }
    }
}

